<?php

class Application_Model_ProductBuyBid
{
	protected $_product_buy_bid_id;
	protected $_product_buy_id;
	protected $_member_id;
    protected $_price;
    protected $_offer_type;
    protected $_status;
    protected $_checked;
    protected $_creation_time;
    
    protected $_username;

    public function __construct(array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }

    public function __set($name, $value)
    {
        $method = 'set' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid product_buy_bid property');
        }
        $this->$method($value);
    }

    public function __get($name)
    {
        $method = 'get' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid product_buy_bid property');
        }
        return $this->$method();
    }

    public function setOptions(array $options)
    {
        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
    
	public function setProduct_buy_bid_id($id)
    {
        $this->_product_buy_bid_id = (string) $id;
        return $this;
    }

    public function getProduct_buy_bid_id()
    {
        return $this->_product_buy_bid_id;
    }

    public function setProduct_buy_id($id)
    {
        $this->_product_buy_id = (string) $id;
        return $this;
    }

    public function getProduct_buy_id()
    {
        return $this->_product_buy_id;
    }
    
	public function setMember_id($id)
    {
        $this->_member_id = (string) $id;
        return $this;
    }

    public function getMember_id()
    {
        return $this->_member_id;
    }
    
	public function setPrice($price)
    {
        $this->_price = (int) $price;
        return $this;
    }

    public function getPrice()
    {
        return $this->_price;
    }
    
	public function setOffer_type($text)
    {
        $this->_offer_type = (string) $text;
        return $this;
    }

    public function getOffer_type()
    {
        return $this->_offer_type;
    }
    
	public function setStatus($text)
    {
        $this->_status = (string) $text;
        return $this;
    }

    public function getStatus()
    {
        return $this->_status;
    }
    
	public function setChecked($text)
    {
        $this->_checked = (string) $text;
        return $this;
    }

    public function getChecked()
    {
        return $this->_checked;
    }
    
	public function setCreation_time($text)
    {
        $this->_creation_time =  $text;
        return $this;
    }

    public function getCreation_time()
    {
        return $this->_creation_time;
    }
    
	public function setUsername($text)
    {
        $this->_username =  $text;
        return $this;
    }

    public function getUsername()
    {
        return $this->_username;
    }
}

